package com.education.dao;

import com.education.pojo.UserCollection;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserCollectionMapper {
    int deleteByPrimaryKey(Integer ucId);

    int insert(UserCollection record);

    int insertSelective(UserCollection record);

    UserCollection selectByPrimaryKey(Integer ucId);

    int updateByPrimaryKeySelective(UserCollection record);

    int updateByPrimaryKey(UserCollection record);

    //根据用户ID和试卷ID查询我的收藏中是否有该试卷
    List<UserCollection> selectByUidAndTpid(@Param("uid")Integer uid, @Param("tpid")Integer tpid);
}